import { lazy } from "react";
import Home from "../view/home/Home";

const routes = [{
    name: "home",
    path: "/",
    component: Home,
    meta: {
        title: '首页'
    },
},{
    name: 'user',
    path: "/user",
    component: lazy(()=>import('../view/home/user/User')),
    meta: {
        title: '管理员页面'
    },
},{
    name: 'login',
    path: '/login',
    component: lazy(()=>import('../view/login/Login')),
    meta: {
        title: '登录页'
    }
}]

export default routes;